export function detaFormater(value) {

    let date = new Date(value)

    let year = date.getFullYear()

    let month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1

    let day = date.getDay() > 10 ? date.getDate() : `0${date.getDay()}`

    let hours = date.getHours()

    let min = date.getMinutes()

    return `${year}-${month}-${day}-${hours}:${min}`
}

export function formatTime  (value)  {
    if (!value) return '未知时间';
    const date = new Date(value);
    return date.toLocaleString();
};